package se.webbzon.boltzmann.game.object.portal;

import se.webbzon.boltzmann.environment.AbstractEnvironment;
import se.webbzon.oschi01.friendly.Friendly;

public class SimplePortalDeflation extends AbstractPortalDeflation {
	
	/*============================================================
	Constructors
	============================================================*/
	
	public SimplePortalDeflation(int deflationProperties) {
		super(deflationProperties);
	}

	public SimplePortalDeflation(int deflationProperties, SimplePortal portal) {
		super(deflationProperties, portal);
	}
	
	/*============================================================
	Friendly Methods
	============================================================*/
	
	@Friendly SimplePortal makePortal(AbstractEnvironment env) {
		SimplePortal portal = new SimplePortal(env,getWorldAreaName(),getPortalId());
		portal.setPosition(getX(), getY(), getZ());
		portal.setSize(getWidth(), getHeight(), getDepth());
		portal.setRotation(getEX(), getEY(), getEZ(), getAngle());
		return portal;
	}

}
